# $Id$
# Maintainer: Eric Bélanger <eric@archlinux.org>
# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=libqalculate
pkgver=2.6.2
pkgrel=1
pkgdesc="Multi-purpose desktop calculator"
arch=(x86_64)
url="http://qalculate.github.io/"
license=(GPL)
depends=(libxml2 curl mpfr)
makedepends=(intltool)
optdepends=('gnuplot: for plotting support')
source=(https://github.com/Qalculate/libqalculate/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('bb52944426646a369a3b113d79f19bb92c7569bb3801f65f4fd416bed67e98d7')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
